<?php


namespace app\admin\controller;

use think\Controller;

class BaseController extends Controller{
    public function __construct(){
        $adminData = session('adminData');

        if(!$adminData){
            $this->error('未登录，先登录','admin/index/login');
        }
    }
}